import 'package:flutter/material.dart';


/*
 * 操作人 : yzhg
 * 描  述 : 主页面
 */
class SyhHomeRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("孙永辉的主页面"),
      ),
      body: Center(
        child:Container(
//          child: Text("这是一个主页面",style: TextStyle(fontSize: 30)),
//          alignment: Alignment.center,
//          width: 500.0,
//          height: 500.0,
////          color: Colors.red,
//          padding: const EdgeInsets.fromLTRB(20.0,10,20.0,0),
//          margin:  const EdgeInsets.fromLTRB(20.0,10,20.0,0),
//          decoration: new BoxDecoration(
//            gradient: const LinearGradient(
//              colors: [Colors.red,Colors.green,Colors.blue]
//            ),
//              border: Border.all(width: 10.0,color: Colors.green)
//          ),
          child:new Image.network(
            'https://i2.hdslb.com/bfs/face/c81969907b5c286b50d02400e7d54b13595f09bb.jpg_64x64.jpg',
            fit: BoxFit.scaleDown,
            color: Colors.red,
            colorBlendMode: BlendMode.modulate,
            repeat: ImageRepeat.repeatY,
          ),
          width: 300.0,
          height: 200.0,
          color: Colors.green,
        )
      ),
    );
  }
}

